class UrlMappings {

	static mappings = {
		"/user/login"{
			controller = "user"
			action = { params.type ? params.type : "index" }
		}
        "/$controller/$action?/$id?(.${format})?"{
            constraints {
                // apply constraints here
            }
        }

        "/"(view:"/index")
        "500"(view:'/error')
	}
}
